FROM openjdk:8-jre-alpine
MAINTAINER gongjing <jsjgongjing@sina.com>
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone && mkdir /app
WORKDIR /app
ADD apollo-configservice-0.11.1-SNAPSHOT.jar /app
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app/apollo-configservice-0.11.1-SNAPSHOT.jar", "--spring.config.location=/app/application.yml"]
EXPOSE 8091